Enum Class ECCurve

java.lang.Object
java.lang.Enum<ECCurve>
org.mozilla.jss.util.ECCurve
All Implemented Interfaces:
Serializable, Comparable<ECCurve>, Constable

public enum ECCurve extends Enum<ECCurve>
Database of common, public elliptic curves. Data taken from jss.pkcs11.PK11KeyPairGenerator, the OpenJDK CurveDB, and djb's SafeCurves webpage.
  • Enum Constant Details

    • P256

      public static final ECCurve P256
    • P384

      public static final ECCurve P384
    • P521

      public static final ECCurve P521
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static ECCurve[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ECCurve valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNames

      public String[] getNames()
    • getOIDs

      public OBJECT_IDENTIFIER[] getOIDs()
    • getField

      public ECField getField()
    • getA

      public BigInteger getA()
    • getB

      public BigInteger getB()
    • getEC

      public EllipticCurve getEC()
    • getGeneratorX

      public BigInteger getGeneratorX()
    • getGeneratorY

      public BigInteger getGeneratorY()
    • getGenerator

      public ECPoint getGenerator()
    • getOrder

      public BigInteger getOrder()
    • getECParameterSpec

      public ECParameterSpec getECParameterSpec()
    • getCofactor

      public int getCofactor()
    • getPointSize

      public int getPointSize()
    • fromOID

      public static ECCurve fromOID(OBJECT_IDENTIFIER oid)
    • fromName

      public static ECCurve fromName(String name)
    • fromOrder

      public static ECCurve fromOrder(BigInteger order)